 |
 |
 |
 |
#145361 - 08/08/01 10:04 PM
Re: [6.1x] UbbIntegratedPoll 1.9
|
Member
Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
|
ok that fixes that problem - there was one other item which causes problems too - With the MOD, as is, the Primary Settings menu turns up blank this line of code is added: <blockquote><font size="1" face="Verdana, Helvetica, Arial">code:</font><hr />
document.writeln("<option value="$vars_config
{CGIURL}/cp.cgi?ubb=vars_poll&r=$ran"> - Poll Settings</option>");
<hr /></blockquote> The syntax does not match the other menu options in that section of cp_common.pl. If the two " are removed the menu works just fine. Resulting in the code looking like: <blockquote><font size="1" face="Verdana, Helvetica, Arial">code:</font><hr />
document.writeln("<option value=$vars_config
{CGIURL}/cp.cgi?ubb=vars_poll&r=$ran> - Poll Settings</option>");
<hr /></blockquote> Thanks again for a great MOD!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#145374 - 08/10/01 01:58 PM
Re: [6.1x] UbbIntegratedPoll 1.9
|
Member
Registered: 10/20/00
Posts: 271
Loc: Stillwater, OK, USA
|
A couple of small bugfixes. I was having problems with the option text being really really tiny, as well as the view results and edit poll links. This fixes that problem.
In ubb_poll_lib.cgi replace:
</font><blockquote><font size="1" face="Verdana, Helvetica, Arial">quote:</font><hr /><font size="2" face="Verdana, Helvetica, Arial">or ($i=0; $i<=$poll_data{choice_total}; $i++) { $id = "choice_$i"; @choice = split(/||/, $poll_data{$id}); $ubb_poll_options .= qq~<tr><td bgcolor="$vars_style{AltColumnColor1}"><input type="radio" name="vote" value="$choice[0]" />  $choice[0] </td></tr>~; } ## end for loop</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, Arial">
with:
</font><blockquote><font size="1" face="Verdana, Helvetica, Arial">quote:</font><hr /><font size="2" face="Verdana, Helvetica, Arial">or ($i=0; $i<=$poll_data{choice_total}; $i++) { $id = "choice_$i"; @choice = split(/||/, $poll_data{$id}); $ubb_poll_options .= qq~<tr><td bgcolor="$vars_style{AltColumnColor1}"><font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><input type="radio" name="vote" value="$choice[0]" />  $choice[0] </font></td></tr>~; } ## end for loop</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, Arial">
Then in public_poll_display.pl replace: </font><blockquote><font size="1" face="Verdana, Helvetica, Arial">quote:</font><hr /><font size="2" face="Verdana, Helvetica, Arial"><td align="left" valign="top"> <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$in{f}&t=$in{t}&comment=results">$vars_wordlets_polls{ipolls_view_results}</a></font> </td> <td align="center"> <font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}" color="$vars_style{TextColor}"> $vars_wordlets_polls{ipolls_comments} <input type="text" name="comment">  <input type="submit" value="Vote!" /> </form> <font face="$vars_style{FontFace}" size="$vars_style{TextSize}"> </td> <td align="right" valign="top"> <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=poll_edit&f=$in{f}&t=$in{t}">$vars_wordlets_polls{ipolls_edit_poll}</a></font></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, Arial">
with: </font><blockquote><font size="1" face="Verdana, Helvetica, Arial">quote:</font><hr /><font size="2" face="Verdana, Helvetica, Arial"><td align="left" valign="top"> <font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}"> <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$in{f}&t=$in{t}&comment=results">$vars_wordlets_polls{ipolls_view_results}</a></font> </td> <td align="center"> <font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}" color="$vars_style{TextColor}"> $vars_wordlets_polls{ipolls_comments} <input type="text" name="comment">  <input type="submit" value="Vote!" /> </form> </td> <td align="right" valign="top"> <font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}"> <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=poll_edit&f=$in{f}&t=$in{t}">$vars_wordlets_polls{ipolls_edit_poll}</a></font></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, Arial">
_________________________
Ultimate Frisbee is good for you, it improves your symbolic logic skills.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|